class ChangeProductsCommissionColumn < ActiveRecord::Migration
  def up
    remove_column :products, :commission
    add_column :products, :commission, 'decimal(8,3)'
    remove_column :products, :commission_rate
    add_column :products, :commission_rate, 'decimal(8,3)'
    remove_column :products, :coupon_rate
    add_column :products, :coupon_rate, 'decimal(8,3)'
  end

  def down
  end
end
